package org.smr.ministore.dao;


import org.apache.ibatis.annotations.Param;
import org.smr.ministore.entities.GoodsSpecificationGroupOrgan;
import org.apache.ibatis.annotations.Mapper;
import org.blade.dao.base.BaseMapper;
import org.blade.dao.base.PageQueryMapper;
import org.smr.ministore.entities.vo.Assign2OrgansVO;

import java.util.List;


/**
*
**/
@Mapper
public interface GoodsSpecificationGroupOrganMapper extends BaseMapper<Long, GoodsSpecificationGroupOrgan>,PageQueryMapper<Long,GoodsSpecificationGroupOrgan> {

    /**
    * 逻辑删除
    * @param id
    *
    */
    int deleteByIdLogical(@Param("id")Long id);



    /**
     * 根据指派组织条件查询
     *
     * @param assign2Organs
     * @return List<GoodsOrgan>
     */
    List<GoodsSpecificationGroupOrgan> selectBy(@Param("assign2Organs") Assign2OrgansVO assign2Organs);

    /**
     * 根据商品信息查询组织引用关系
     *
     * @param goodsSpecificationGroup 商品规格组
     * @return List<GoodsOrgan>
     */
    List<GoodsSpecificationGroupOrgan> selectBySpecificationGroupId(@Param("goodsSpecificationGroup") GoodsSpecificationGroupOrgan goodsSpecificationGroup);

}